package net.csdn.business.common.domain.vo.oauth;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName IdentityVO
 * @Description ats、atu包含的主体信息
 * @Author zhangyl
 * @Date 2023/5/11 10:49
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class IdentityVO {

    @JsonProperty("identity_id")
    private String identityId;

    @JsonProperty("identity_type")
    private String identityType;

    /**
     * ats开头的token关联的组织or的类型枚举：ORG(组织)、USER(个人)
     */
    private String targetType;

    /**
     * ats开头的token关联的组织Id or 个人空间Id
     */
    private String targetId;

    private AppInfoVO appInfo;

    /**
     * ats token 权限校验验证 repo_path 返回
     */
    private Long repoId;
}